package com.zmy.xcx.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.lang.NonNull;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName("hyperglycemia_self_check")
public class HyperglycemiaSelfCheckDO {

    /**
     * 自增主键
     */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 用户id
     */
    @TableField("openid")
    @NonNull
    private String openid;

    /**
     * 是否处于妊娠期, 1处于, 0不处于
     */
    @TableField("is_pregnancy")
    private Integer isPregnancy;

    /**
     * 血糖数据自测信息
     */
    @TableField("self_check_info")
    private String selfCheckInfo;

}
